local ls = require("luasnip")
print("test")

-- 定义自定义代码片段
ls.snippets = {
  all = {
    ls.snippet("tn", {
      ls.text_node("这是一个通用片段"),
    }),
  },
  lua = {
    ls.snippet("func", {
      ls.text_node("function "),
      ls.insert_node(1, "name"),
      ls.text_node("()"),
      ls.text_node("\n\t"),
      ls.insert_node(2, "-- 你的代码"),
      ls.text_node("\nend"),
    }),
  },
  html = {
    ls.snippet("html5", {
      ls.text_node("<!DOCTYPE html>"),
      ls.text_node("<html>"),
      ls.text_node("<head>"),
      ls.text_node("<title>"),
      ls.insert_node(1, "标题"),
      ls.text_node("</title>"),
      ls.text_node("</head>"),
      ls.text_node("<body>"),
      ls.insert_node(2, "内容"),
      ls.text_node("</body>"),
      ls.text_node("</html>"),
    }),
  },
}

-- 确保返回 snippets
return ls.snippets
